<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\Breadcrumbs;

/* @var $this yii\web\View */
/* @var $model app\models\VisitMedicine */

$this->title = '查看随访记录';
$this->params['breadcrumbs'][] = ['label' => '临床信息', 'url' => ['/clinical/patient']];
$this->params['breadcrumbs'][] = ['label' => '辅助检查', 'url' => ['/clinical/check']];
$this->params['breadcrumbs'][] = $this->title;
?>

<?= Breadcrumbs::widget([
    'homeLink' => ['label' => '医疗管理系统', 'url' => '#'],
    'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
]) ?>

<div class="visit-medicine-view">

    <p>
        <?= Html::a('修改', ['update', 'id' => $model->pk_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('返回', '/clinical/visit', ['class' => 'btn btn-success']) ?>

        <?= Html::a('删除', ['delete', 'id' => $model->pk_id], [
            'class' => 'btn btn-danger btn-right',
            'data' => [
                'confirm' => '确定删除?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <table class="table table-striped table-bordered detail-view">
        <tr class="title">
          <td colspan="6"><h4>一、基因报告基本信息</h4></td>
        </tr>
        <tr>
            <th>现病史</th>
            <td><?= $info->pt_history ?></td>
            <th>体格检查</th>
            <td><?= $info->pt_body ?></td>
            <th>处理</th>
            <td><?= $info->pt_solution ?></td>
        </tr>
        <tr>
            <th>注意事项</th>
            <td><?= $info->visit_memo ?></td>
            <th>创建人</th>
            <td><?= $info->crt_name ?></td>
            <th>创建日期</th>
            <td><?= $info->crt_time ?></td>
        </tr>
        <tr class="title">
          <td colspan="6"><h4>二、讨论信息</h4></td>
        </tr>
        <tr>
            <th>首次用药时间</th>
            <td><?= $model->ft_md_time ?></td>
            <th>药物名称</th>
            <td><?= $model->md_name ?></td>
            <th>单次剂量</th>
            <td><?= $model->md_amount ?></td>
        </tr>
        <tr>
            <th>次数</th>
            <td><?= $model->md_times ?></td>
            <th>用法</th>
            <td><?= $model->md_usage ?></td>
            <th>副作用</th>
            <td><?= $model->md_side_effect ?></td>
        </tr>
        <tr>
            <th>创建人</th>
            <td><?= $model->crt_name ?></td>
            <th>创建日期</th>
            <td colspan="3"><?= $model->crt_time ?></td>
        </tr>
        <tr>
            <th>修改人</th>
            <td><?= $model->update_name ?></td>
            <th>修改日期</th>
            <td colspan="3"><?= $model->update_at ?></td>
        </tr>
    </table>

</div>
